package java_DesignPattern.StructuralPattern.DecoraterPattern;

/**
 * 快餐类
 */
public abstract class FastFood {

    private String name;
    private float price;
    private String desc;

    public FastFood(String name, float price, String desc) {
        this.name = name;
        this.price = price;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public float getPrice() {
        return price;
    }

    public String getDesc() {
        return desc;
    }

    //计算价格
    public abstract float calcPrice();
}
